package com.code.train.service;

import com.code.train.domain.TrainCarriage;
import com.code.train.req.TrainCarriageQueryReq;
import com.code.train.req.TrainCarriageSaveReq;
import com.code.train.resp.PageResp;
import com.code.train.resp.TrainCarriageQueryResp;

import java.util.List;

/**
 * TrainService
 *
 * @param
 * @author 南汉卿
 * @return
 * @date 2025/8/21 23:57
 */
public interface TrainCarriageService {
    void save(TrainCarriageSaveReq req);

    PageResp<TrainCarriageQueryResp> queryList(TrainCarriageQueryReq req);

    void delete(Long id);

    List<TrainCarriage> selectByTrainCode(String trainCode);
}